import request from "../../utils/request"

class API {
    //添加地址
    static addressAdd = (data:any)=>request.post('/address/addressAdd',data)

    //获取地址
    static getAddress= (data:any)=>request.post('/address',data)

    //编辑地址
    static addressEdit = (data:any)=>request.post('/address/addressEdit/'+data.id,data)

    //删除地址
    static addressDel = (data:any)=>request.post('/address/addressDel/'+data.id,data)
}
export default API